

<!-- =============================================================================================   -->

	<!--content-->
      <div id="main_content" >
      
	  <div style="float:left;width:255px;border:1px solid black">
	      <img src="<?=base_url()?>uploads/<?=$evt->get_imagem()?>.jpg" width="250" />
	  </div>

	  <div style="float:left;width:470px;border:1px solid black">
		<?php echo form_open('carrinho/add')?>
		<?php echo validation_errors(); ?>
	    <h2>
		<?php echo strtoupper(($evt->get_nome()));?>
	    </h2><br />
		<h3><?=$evt->get_data()->format('d/m/Y');?></h3>
		<h4>
		<?=$evt->get_local()->get_nome();?><br/>
		<?=$evt->get_local()->get_endereco();?><br/>
		<?=$evt->get_local()->get_cidade();?>
		</h4>
		<br/><br/>
		<h4>INGRESSOS:</h4>
		<select id="lote" name="lote" style="width:250px">
			<?php foreach($evt->get_lotes() as $l) :?>
			    <option value="<?=$l->get_id();?>" <?=set_select('lote', $l->get_id())?>><?=$l->get_nome()?> - <?php if($l->esta_esgotado()) echo 'Esgotado!'; else echo 'R$'.$l->get_preco();?></option>
			<?php endforeach;?>
		</select>

			<br clear="all" />
		<?php if(isset($erro)) echo $erro;?>
	     <input type="submit" name="btnEntrar" class="btnEntrar" value="ADICIONAR AO CARRINHO" style="width:250px"/>
	     
		</form>
	</div>
	  <div style="clear:both;border:1px solid black">
	      <h2>Descricao</h2>
	      <?php echo $evt->get_descricao();?> <br/>
	      <h3>Organizadores</h3>
	      <?php echo $evt->get_organizadores();?><br/>
	  </div>
    </div>

